package com.rt.tmpt.dto;

import com.inspiresoftware.lib.dto.geda.annotations.Dto;
import com.inspiresoftware.lib.dto.geda.annotations.DtoField;
import lombok.Data;
import lombok.ToString;
import org.codehaus.jackson.annotate.JsonIgnore;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.*;

@Data
@ToString
@Dto("com.rt.tmpt.bean.A2User")
public class A2UserDto  implements Serializable{
	private static final long serialVersionUID = 1L;

	@DtoField
	private Long id;
	@DtoField
	private String name;
	@DtoField
	private Integer sex;
	@DtoField
	private String loginName;
	@DtoField
	private String password;
	@DtoField
	private String passwordBcrypt;
	@DtoField
	private String idCardno;
	@DtoField
	private String telephone;
	@DtoField
	private String phone;
	@DtoField
	private String email;
	@DtoField
	private Integer owUserType;

	@DtoField
	private String appLoginname;
	@DtoField
	private String appPassword;
	@DtoField
	private String jobNumber;
	@DtoField
	private String clientID;

	@DtoField
	private Integer deleteFlag ;
	@DtoField(readOnly=true)
	private Timestamp createDate ;
	@DtoField
	private Timestamp modifyDate ;
	@DtoField
	private String createMan ;
	@DtoField
	private String modifyMan ;

	@DtoField
	private Integer loginTimes;
	@DtoField
	private Timestamp loginTimeLast;

	private Long companyId;
	private String a2postName;

	private Set<String> menu2AuthList = new HashSet<String>();
	// 数据访问边界
	private Map<String, Integer> dataLimitMap = new HashMap<>();

	private List<A2RoleDto> a2RoleList = new ArrayList<>();

	private Long instituteId;
	private String instituteCode;
	private String instituteName;
	private Long departmentId;
	private String departmentCode;
	private String departmentName;


	private String createDateStr ;
}
